package cn.com.nou.base;

/**
 * @author xuao
 */
public enum ResultCode {
    // 成功
    SUCCESS("200", "成功"),
    // 失败
    FAILED("400", "失败"),
    // 系统错误
    SYS_ERROR("500", "服务器开小差啦..."),
    // 讲师ID为空
    TEACHER_NULL("4001","讲师不存在"),
    INVALID_TOKEN("4002","无效token"),
    NULL_EXCEL("4003","Excel内容为空"),
    SAVE_FAILED("4004","保存失败"),
    UPDATE_FAILED("4004","修改失败"),
    COURSE_NULL("4006","课程不存在"),
    CHAPTER_NULL("4006","章节不存在"),
    VIDEO_NULL("4006","小节不存在"),
    VIDEO_EXIST("4007","存在小节无法删除"),
    DELETE_FAILED("4004","删除失败"),
    ;
    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
